//
//  CompanyTableViewCell.m
//  kr_36
//
//  Created by lmt on 16/1/27.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CompanyTableViewCell.h"

@implementation CompanyTableViewCell

- (void)dealloc
{
    [_logo release];
    [_name release];
    [_biao release];
    [_industry release];
    [_xian release];
    [_label release];
    [_target release];
    [_brief release];
    
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.logo = [[UIImageView alloc] init];
        [self.contentView addSubview:_logo];
        //_logo.backgroundColor = [UIColor redColor];
        [_logo release];
        
        self.name = [[UILabel alloc] init];
        [self.contentView addSubview:_name];
        //_name.backgroundColor = [UIColor yellowColor];
        [_name release];
        
        self.biao = [[UIImageView alloc] init];
        [self.contentView addSubview:_biao];
        _biao.image = [UIImage imageNamed:@"biao@2x"];
        [_biao release];
        
        self.industry = [[UILabel alloc] init];
        [self.contentView addSubview:_industry];
        //_industry.backgroundColor = [UIColor cyanColor];
        [_industry release];
        
        self.xian = [[UIView alloc] init];
        [self.contentView addSubview:_xian];
        //_xian.backgroundColor = [UIColor grayColor];
        [_xian release];
        
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:_label];
        _label.text = @"融资目标:";
        _label.font = [UIFont systemFontOfSize:14];
        [_label release];
        
        self.target = [[UILabel alloc] init];
        [self.contentView addSubview:_target];
        //_target.backgroundColor = [UIColor redColor];
        [_target release];
        
        self.brief = [[UILabel alloc] init];
        [self.contentView addSubview:_brief];
        //_brief.backgroundColor = [UIColor greenColor];
        _brief.numberOfLines = 0;
        _brief.font = [UIFont systemFontOfSize:14];
        [_brief release];
        
        self.huise = [[UIView alloc] init];
        [self.contentView addSubview:_huise];
        _huise.backgroundColor = [UIColor grayColor];
        _huise.alpha = 0.3;
        [_huise release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _logo.frame = CGRectMake(5, 5, 80, 80);
    _logo.layer.cornerRadius = 40;
    _logo.clipsToBounds = YES;
    
    _name.frame = CGRectMake(90, 5, self.contentView.frame.size.width - 100, 40);
    
    _biao.frame = CGRectMake(95, 50, 20, 20);
    
    _industry.frame = CGRectMake(125, 45, self.contentView.frame.size.width - 130, 30);
    
    _xian.frame = CGRectMake(90, 79, _name.frame.size.width, 1);
    
    _label.frame = CGRectMake(90, 85, 70, 35);
    
    _target.frame = CGRectMake(170, 85, self.contentView.frame.size.width - 180, 35);
    
    _brief.frame = CGRectMake(5, 125, self.contentView.frame.size.width - 10, 40);
    
    _huise.frame = CGRectMake(0, 165, self.contentView.frame.size.width, 15);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
